﻿#region Usings

using System;
using System.ComponentModel.DataAnnotations;

#endregion

namespace DbConvertor.Dao.Entities
{
    public class RelationDescription
    {
        #region Primitive Properties

        [Key]
        public long Id { get; set; }

        [Required]
        public DateTime ValidFrom { get; set; }

        [Required]
        public DateTime ValidTo { get; set; }

        [Required]
        public short StationType { get; set; }

        [Required]
        public bool Included { get; set; }

        #endregion

        #region Navigation Properties

        public virtual Relation Relation { get; set; }

        public virtual Station Station { get; set; }

        #endregion
    }
}